<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Capture script output</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.httpresponse.html">HttpResponse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpresponse.getbuffersize.html">HttpResponse::getBufferSize</a></div>
 <div class="up"><a href="class.httpresponse.html">HttpResponse</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="httpresponse.capture" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">HttpResponse::capture</h1>
  <p class="verinfo">(PECL pecl_http &gt;= 0.10.0)</p><p class="refpurpose"><span class="refname">HttpResponse::capture</span> &mdash; <span class="dc-title">Capture script output</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-httpresponse.capture-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">static</span>
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>HttpResponse::capture</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Capture script output.
  </p>
 </div>


 


 


 <div class="refsect1 examples" id="refsect1-httpresponse.capture-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-4263">
    <p><strong>Example #1 A <span class="function"><strong>HttpResponse::capture()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setCache</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">capture</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">//&nbsp;script&nbsp;follows<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>



 <div class="refsect1 seealso" id="refsect1-httpresponse.capture-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="httpresponse.send.html" class="methodname" rel="rdfs-seeAlso">HttpResponse::send()</a> - Send response</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.httpresponse.html">HttpResponse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpresponse.getbuffersize.html">HttpResponse::getBufferSize</a></div>
 <div class="up"><a href="class.httpresponse.html">HttpResponse</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
